{% extends "base6633.html" %}

{% block javascript %}
{{ forms.media }}
<link href="/files/lib/thickbox/thickbox.css" media="screen" rel="stylesheet" type="text/css"/>
<script src="/files/lib/thickbox/thickbox-compressed.js" type="text/javascript"></script>
{% endblock %}

{% block title %}Edit Page{% endblock %}

{% block maincontent %}
<form id="MainForm" enctype="multipart/form-data" action="." method="POST">

<script type="text/javascript">
	$(document).ready( function() {
		$("#tabs").tabs();
	});
</script>

<div id="tabs">
	<ul class="no_icon">
		<li><a href="#tab1">Page</a></li>
		<li><a href="#tab2">Attached Files</a></li>
		<li><a href="#tab3">Other Options</a></li>
	</ul>
	<div id="tab1">
		{{ forms.PageUpdateForm.title.label }} {{ forms.PageUpdateForm.title }} {{ forms.PageUpdateForm.title.errors }}
		<br/><br/>
		 {{ forms.PageUpdateForm.body }} <br/>
		 {{ forms.PageUpdateForm.body.errors }}
	</div>
	<div id="tab2">
		<h1>Artifacts</h1>
		{{ forms.PageArtifactAjaxInsertForm.as_p }}
		{{ forms.PageArtifactAjaxInsertForm.errors }}
		<ul id='PageArtifactList' class="no_icon">
		{% for f in forms.PageArtifactInlineUpdateForm %}
			{{ f.as_template }} {{ f.errors }}
		{% endfor %}
		</ul>
	</div>
	<div id="tab3">
		{{ forms.PageUpdateForm.parent.label }}
		     {{ forms.PageUpdateForm.parent}}
		     {{ forms.PageUpdateForm.parent.errors }}<br/><br/>
		{{ forms.PageUpdateForm.order.label }}
		     {{ forms.PageUpdateForm.order}}
		     {{ forms.PageUpdateForm.order.errors }}
	</div>
</div>
{{ forms.errors }}
{{ forms.submit }}
</form>


{% endblock %}

{% block sidebar %}
<h1>Similar Pages</h1>
<ul class='no_icon'>
	{% for SimilarPage in SimilarPages %}
		<li><a href="{{ SimilarPage.get_absolute_url }}?popup=1&height=450&width=700"
				title="Click on the title to see the page normally" class="thickbox"">
				{{ SimilarPage.user.get_full_name }} : {{ SimilarPage.title }}</a>
	{% empty %}
		<li>No similar pages
	{% endfor %}
</ul>
{% endblock %}